package com.kate.mall.mall.feign;

import com.kate.mall.common.utils.R;
import com.kate.mall.mall.dto.UserFormIdDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 新梦想.陈超
 * @version 2021.2
 * @Description: {TODO}
 * @date 2023/6/29 下午11:12
 */

@FeignClient("member-center")
public interface MemberFeignClient {
    @GetMapping("/user/memberformid/byOpenId")
    R queryUserFormIdByOpenId(@RequestParam("touser") String touser);
    @PutMapping("/user/memberformid/formId")
    R updateUserFormId(@RequestBody UserFormIdDTO userFormidDto);
}
